{extend name="public/base" /}
{block name="body"}
<div class="layui-fluid">
    <div class="layui-row">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
			<div class="widget-head">
				<div class="widget-title">{$title}</div>
			</div>
			<form id="my-form" class="layui-form" method="post">
				<div class="widget-body layui-col-lg12">
					<div class="layui-form-item">
						<label class="layui-form-label form-require">上级菜单</label>
						<div class="layui-input-block">
							<select name="pid" >
								<option value="0">顶级菜单</option>
								{volist name="plist" id="item"}
                        		<option value="{$item.id}" {if condition="$pid eq $item.id"}selected="selected"{/if}>{$item.fulltitle|raw}
                        		</option>
                        		{/volist}
							</select>
						</div>
					</div> 
					<div class="layui-form-item">
						<label class="layui-form-label form-require">标题</label>
						<div class="layui-input-block">
							<input type="text" class="layui-input" name="title" value="{$info.title}" placeholder="请输入菜单标题" required>
						</div>
					</div>	
					<div class="layui-form-item">
						<label class="layui-form-label">副标题</label>
						<div class="layui-input-block">
							<input type="text" class="layui-input" name="tip" value="{$info.tip}" placeholder="请输入提示">
						</div>
					</div>				
					<div class="layui-form-item">
						<label class="layui-form-label">链接</label>
						<div class="layui-input-block">
							<input type="text" class="layui-input" name="url" value="{$info.url}" placeholder="请输入链接">
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">图标</label>
						<div class="layui-input-block">
							<input type="text" class="layui-input" name="icon" value="{$info.icon}" placeholder="请输入图标">
						</div>
					</div>					
					<div class="layui-form-item">
						<label class="layui-form-label">排序</label>
						<div class="layui-input-block">
							<input type="text" class="layui-input" name="sort" value="{$info.sort}" placeholder="请输入排序">
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">是否隐藏</label>
						<div class="layui-input-block">
							<input type="radio" name="hide" value="1" title="是" {eq name="info['hide']" value="1"}checked{/eq}>
                    		<input type="radio" name="hide" value="0" title="否" {eq name="info['hide']" value="0"}checked{/eq}>
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">是否菜单</label>
						<div class="layui-input-block">
							<input type="radio" name="is_menu" value="1" title="是" {eq name="info['is_menu']" value="1"}checked{/eq}>
                    		<input type="radio" name="is_menu" value="0" title="否" {eq name="info['is_menu']" value="0"}checked{/eq}>
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">开发模式</label>
						<div class="layui-input-block">
							<input type="radio" name="is_dev" value="1" title="是" {eq name="info['is_dev']" value="1"}checked{/eq}>
                    		<input type="radio" name="is_dev" value="0" title="否" {eq name="info['is_dev']" value="0"}checked{/eq}>
						</div>
					</div>
					<div class="layui-form-item">
						<div class="layui-input-block">
							<input type="hidden" name="id" value="{$info.id}">
							<button class="layui-btn" lay-filter="*" lay-submit="">保存</button>
                    		<button class="layui-btn layui-btn-primary" onclick="javascript:history.back(-1);return false;">返回</button>
						</div>						
					</div>
				</div>
			</form>
		</div>
    </div>
</div>
{/block}